package com.ofcoder.tool.validator.exception;

/**
 * @author: yuanyuan.liu
 * @date: 2020/6/11 17:28
 */
public class ParamInvalidException extends ValidatorException {
    private String paramName;
    private Object paramValue;

    public ParamInvalidException(String message) {
        super(message);
    }

    public ParamInvalidException(String message, String paramName, Object paramValue) {
        super(message);
        this.paramName = paramName;
        this.paramValue = paramValue;
    }

    public String getParamName() {
        return paramName;
    }

    public Object getParamValue() {
        return paramValue;
    }
}
